﻿@if (ViewBag.Author == null)
{
    <header>
        <nav class="navbar">
            <div class="container">
                <div class="navbar-header header-logo">
                    <a href="/">@ViewBag.Settings.SiteName</a>
                </div>
                <div class="menu navbar-right">
                    <a class="menu-item" href="/">Posts</a>
                    @* <a class="menu-item" href="/categories">Categories</a> *@
                    @* <a class="menu-item" href="/tags">Tags</a> *@
                    <input id="switch_default" type="checkbox" class="switch_default">
                    <label for="switch_default" class="toggleBtn"></label>
                </div>
            </div>
        </nav>
        <nav class="navbar-mobile" id="nav-mobile">
            <div class="container">
                <div class="navbar-header">
                    <div>
                        <a href="/">@ViewBag.Settings.SiteName</a>
                        <a id="mobile-toggle-theme">&nbsp;·&nbsp;Light</a>
                    </div>
                    <div class="menu-toggle" onclick="mobileBtn()">&#9776; Menu</div>
                </div>
                <div class="menu" id="mobile-menu">
                    <a class="menu-item" href="/">Posts</a>
                    @* <a class="menu-item" href="/categories">Categories</a> *@
                    @* <a class="menu-item" href="/tags">Tags</a> *@
                </div>
            </div>
        </nav>
    </header>
}
else
{
<header>
    <nav class="navbar">
        <div class="container">
            <div class="navbar-header header-logo">
                <span>@ViewBag.Settings.SiteName - Manage</span>
            </div>
            <div class="menu navbar-right">
                <a class="menu-item" href="~/admin/index">Web Status</a>
                <a class="menu-item" href="~/post/new">New Post</a>
                <a class="menu-item" href="~/post/index">Post List</a>
                @* <a class="menu-item" href="~/admin/category">Categories</a> *@
                @* <a class="menu-item" href="~/admin/comments">Comments</a>s *@
                @* <a class="menu-item" href="~/admin/tags">Tags</a> *@
                <input id="switch_default" type="checkbox" class="switch_default">
                <label for="switch_default" class="toggleBtn"></label>
            </div>
        </div>
    </nav>
    <nav class="navbar-mobile" id="nav-mobile">
        <div class="container">
            <div class="navbar-header">
                <div>
                    <a href="/">@ViewBag.Settings.SiteName</a>
                    <a id="mobile-toggle-theme">&nbsp;·&nbsp;Light</a>
                </div>
                <div class="menu-toggle" onclick="mobileBtn()">&#9776; Menu</div>
            </div>
            <div class="menu" id="mobile-menu">
                <a class="menu-item" href="~/admin/index">Web Status</a>
                <a class="menu-item" href="~/post/new">New Post</a>
                <a class="menu-item" href="~/post/index">Post List</a>
                @* <a class="menu-item" href="~/admin/category">Categories</a> *@
                @* <a class="menu-item" href="~/admin/tags">Tags</a> *@
            </div>
        </div>
    </nav>
</header>
}
